package homework_five_1;

public class Car extends Vehicle {
    private int loader;

    public Car(String brand, String color,int loader) {
        super(brand, color);
        this.loader=loader;
    }
    public void run(){
        System.out.println("小轿车会奔跑");
    }

    public int getLoader() {
        return loader;
    }

    public void setLoader(int loader) {
        this.loader = loader;
    }
}
